package com.cityeye.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * Department entity. @author MyEclipse Persistence Tools
 */

public class Department extends com.cityeye.util.IEntity implements
		java.io.Serializable {

	public static final int TYPE_SHI=0;
	public static final int TYPE_QU=1;
	public static final int TYPE_JIEDAO=2;	
	
	// Fields

	private Integer id;
	private Department department;	
	private String name;
	private String addr="";
	private String manager="";	
	private String phone="";	
	private String comments="";	
		
	private Integer type=TYPE_JIEDAO;
	private Set users = new HashSet(0);
	private Set patrols = new HashSet(0);
	private Set mmessages = new HashSet(0);
	private Set departments = new HashSet(0);

	// Constructors

	/** default constructor */
	public Department() {
	}

	/** minimal constructor */
	public Department(Integer id, String name, Integer type) {
		this.id = id;
		this.name = name;
		this.type = type;
	}

	/** full constructor */
	public Department(Integer id, Department department, String name,
			String addr, Integer type, Set users, Set patrols, Set mmessages,
			Set departments,String manager,String phone,String comments) {
		this.id = id;
		this.department = department;
		this.name = name;
		this.addr = addr;
		this.type = type;
		this.users = users;
		this.patrols = patrols;
		this.mmessages = mmessages;
		this.departments = departments;
		this.manager = manager;
		this.phone = phone;
		this.comments = comments;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Department getDepartment() {
		return this.department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddr() {
		return this.addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getManager() {
		return manager;
	}

	public void setManager(String manager) {
		this.manager = manager;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getComments() {
		return comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}
	
	public Set getUsers() {
		return this.users;
	}

	public void setUsers(Set users) {
		this.users = users;
	}

	public Set getPatrols() {
		return this.patrols;
	}

	public void setPatrols(Set patrols) {
		this.patrols = patrols;
	}

	public Set getMmessages() {
		return this.mmessages;
	}

	public void setMmessages(Set mmessages) {
		this.mmessages = mmessages;
	}

	public Set getDepartments() {
		return this.departments;
	}

	public void setDepartments(Set departments) {
		this.departments = departments;
	}

}